<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateOrganizationTable extends Migration {

	/**
	 * Run the migrations.
	 *
	 * @return void
	 */
	public function up()
	{
		//图片表
		Schema::create('organization', function(Blueprint $table)
		{
			$table->increments('id');
			$table->unsignedInteger('fac_id')->nullable();
			$table->string('org_name')->nullable();
			$table->string('org_desc')->nullable();
			$table->string('province')->nullable();
			$table->string('city')->nullable();
			$table->string('area')->nullable();
			$table->string('experience')->nullable();
			$table->integer('has_invoice')->default(0);
			$table->integer('team_num')->default(0);
			$table->text('solution')->nullable();
			$table->string('other_service')->nullable();
			$table->integer('state')->default(0);
			$table->softDeletes();
			$table->timestamps();
		});
	}

	/**
	 * Reverse the migrations.
	 *
	 * @return void
	 */
	public function down()
	{
		Schama::drop('organization') ;
	}

}
